package com.cn.web.app.template.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cn.common.IDGenerate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

@Setter
@Getter
@Accessors(chain = true)
@ApiModel(value = "票据模板中心")
@TableName("order_template")
public class OrderTemplateEntity extends IDGenerate {

    @ApiModelProperty(value = "模板所属用户ID")
    private String userId;

    @ApiModelProperty(value = "模板所属机构")
    private String orgId;

    @ApiModelProperty(value = "模板名称")
    private String templateName;

    @ApiModelProperty(value = "模板地址--原始地址")
    private String templateUrl;

    @ApiModelProperty(value = "模板地址--预处理后的地址")
    private String templateUrl2;

    private String content;

    @ApiModelProperty(value = "0-待处理 1-处理成功 2-驳回（重新上传）")
    private Integer approveStatus;

    @ApiModelProperty(value = "模板预处理意见")
    private String approveNote;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private String createTime;

    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty(value = "创建时间")
    private String updateTime;

    private String baiduTemplateId;

    @ApiModelProperty(value = "0-等待打标")
    private Integer markStatus;

    @ApiModelProperty(value = "0-共用 1-私有")
    private Integer templateType;

}
